home *** CD-ROM | disk | FTP | other *** search
- <%@ Language=VBScript CODEPAGE=65001 ENABLESESSIONSTATE="True" %>
- <!--#include file="include/wmsConstants.inc"-->
- <!--#include file="include/wmsLocStrings.inc"-->
- <!--#include file="include/wmsCommon.inc"-->
- <!--#include file="include/wmsServerHash.inc"-->
- <!--#include file="include/wmsHeader.inc"-->
- <!--#include file="include/wmsRefresh.inc"-->
- <%
- '+-------------------------------------------------------------------------
- '
- ' Microsoft Windows Media
- ' Copyright (C) Microsoft Corporation. All rights reserved.
- '
- ' File: Index.asp
- '
- ' Contents: Frameset for server list and for nesting security settings
- '
- '--------------------------------------------------------------------------
-
- if( ( FALSE = Session( "Initialized" ) ) or ( FALSE = Session( "ShowServerList" ) ) ) then
- InitSessionUseServerList
- end if
-
- BrowserSniff
- PickStyleSheet
- RedirectIfLegacyBrowser
-
- '///////////////////////////////////////////////////////////////////////
- '
- ' This can be entered if the user retrogrades to default.asp and
- ' chooses to admin from a server list after initially administering
- ' only the local server
- '
- Sub InitSessionUseServerList()
- Dim strHashedServer
- Session( "Initialized" ) = TRUE
-
- SyncWithApplicationState
-
- '
- ' Make security decisions if we got here from the default security page
- '
- if( 0 >= Len( Request.QueryString( "show" ) ) ) then
- if( FALSE = CBool( Session( "ConnectionFailure" ) ) ) then
-
- '
- ' connect to the localhost just as if the user clicked on it from the serverlist page
- '
- Session( "ShowServerList" ) = FALSE
- strHashedServer = ServerNameToHashKey( Application( "strLocalHostName" ), TRUE )
- end if
- end if
-
- Session( "Initialized" ) = TRUE
- Session( "ShowServerList" ) = TRUE
- strHashedServer = empty
- End Sub
-
-
- WriteHTMLFramesetHeader %>
- <script language="javascript">
- <!--
- /*@cc_on @*/
- ///////////////////////////////////////////////////////////////////////
- function RecordLocalHostWinName( szWinName )
- {
- /*@if (@_jscript_version >= 1.3)
- try
- {
- @end @*/
- var win = null;
- if( frames && frames[ "frameDetails" ] )
- {
- win = frames[ "frameDetails" ];
- if( win )
- {
- win.RecordLocalHostWinName( szWinName )
- }
- }
- /*@if (@_jscript_version >= 1.3)
- }
- catch( error )
- {
- return;
- }
- @end @*/
- }
-
- -->
- </script>
- <title>
- <%= Server.HTMLEncode( L_WMSWEBADMINTITLE_TEXT ) %>
- </title>
- <frameset rows="*,-10" >
- <frame name="frameDetails" src="serverlist.asp<% if ( 0 < Len( Request.QueryString( "show" ) ) ) then %>?show=true<% end if %>" frameborder="0" topmargin="10" leftmargin="10" rightmargin="10" marginwidth="10" marginheight="10" scrolling="auto">
- <frame name="WMSSession" src="WMSSession.asp" noresize frameborder="0" height="0" framespacing="0" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0" scrolling="no">
- <noframes>
- <body oncontextmenu="JavaScript:return true;event.cancelBubble=true;return false;">
- <p>
- <a href="..\oldBrowser.asp" target="_top" ><%= Server.HTMLEncode( L_NOFRAMESUPPORT_TEXT ) %></a>
- <p>
- </body>
- </noframes>
- </frameset>
- </html>
- <%
- WMSServerHashASPCleanup
- %>